package com.lakeworks.event;

import com.lakeworks.common.enums.RobotType;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * 打包开始事件
 */
@Getter
public class TopickEvent extends ApplicationEvent {

    private Long shipmentId;

    public TopickEvent(Object source, Long shipmentId) {
        super(source);
        this.shipmentId = shipmentId;
    }

    public RobotType getRobotType() {
        return RobotType.AUTO_PRODUCT_TOPICK;
    }

    public void setShipmentId(Long shipmentId) {
        this.shipmentId = shipmentId;
    }
}
